/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_regionDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression re_id_region;
	public final StringExpression re_region;
	public final StringExpression re_numero;
	
	public Tbv_regionDetachedCriteria() {
		super(orm.Tbv_region.class, orm.Tbv_regionCriteria.class);
		re_id_region = new IntegerExpression("re_id_region", this.getDetachedCriteria());
		re_region = new StringExpression("re_region", this.getDetachedCriteria());
		re_numero = new StringExpression("re_numero", this.getDetachedCriteria());
	}
	
	public Tbv_regionDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tbv_regionCriteria.class);
		re_id_region = new IntegerExpression("re_id_region", this.getDetachedCriteria());
		re_region = new StringExpression("re_region", this.getDetachedCriteria());
		re_numero = new StringExpression("re_numero", this.getDetachedCriteria());
	}
	
	public Tbv_provinciaDetachedCriteria createTbv_provinciaCriteria() {
		return new Tbv_provinciaDetachedCriteria(createCriteria("ORM_Tbv_provincia"));
	}
	
	public Tbv_region uniqueTbv_region(PersistentSession session) {
		return (Tbv_region) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tbv_region[] listTbv_region(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tbv_region[]) list.toArray(new Tbv_region[list.size()]);
	}
}

